package com.rul.mars.order.service;

import com.rul.mars.common.api.CommonResult;
import com.rul.mars.mbg.domain.ProductDetail;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 商品服务远程调用
 *
 * @author RuL
 */
@FeignClient("mart-product")
public interface ProductService {

    /**
     * 获取商品详情
     *
     * @param id 商品id
     * @return 上平详情
     */
    @GetMapping("/detail/{id}")
    CommonResult<ProductDetail> detail(@PathVariable(value = "id") Long id);
}
